﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Hire_Equipments.aspx.cs"
    Inherits="CTEA_INDIA.Hire_Equipments" Theme="Default" %>

<%@ Register Src="~/MenuList.ascx" TagName="Menu" TagPrefix="m1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="CSS/Stylsheet.css" rel="stylesheet" type="text/css" />
    <link href="CSS/MyStyle.css" rel="stylesheet" type="text/css" />
    <link type="text/css" href="CSS/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            // Tabs
            $('#tabs').tabs({ selected: 0 });
            $('#tabs').bind('tabsshow', function (event, ui) {
                var tabSelected = "#tab" + ui.index + "Selected";
                $(tabSelected).html("isClicked");
            });

            $('#menu_lnkHireEqp').css({ color: '#DBA615' });
            //hover states on the static widgets
            $('#dialog_link, ul#icons li').hover(
					function () { $(this).addClass('ui-state-hover'); },
					function () { $(this).removeClass('ui-state-hover'); }
				);
        });
    </script>
    <script type="text/javascript">

        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
        }

        function isCash(dropdown) {
            if (dropdown.selectedIndex == 0) {
                document.getElementById("Cheque").style.visibility = "collapse ";
                document.getElementById("Cheque2").style.visibility = "collapse ";
                document.getElementById("Cash").style.visibility = "Visible";
            }
            else {
                document.getElementById("Cheque").style.visibility = "visible ";
                document.getElementById("Cheque2").style.visibility = "visible ";
                document.getElementById("Cash").style.visibility = "collapse";
            }
        }


        function isCashEdt(dropdown) {
            if (dropdown.selectedIndex == 0) {
                document.getElementById("ChequeEdt").style.visibility = "collapse ";
                document.getElementById("ChequeEdt2").style.visibility = "collapse ";
                document.getElementById("cashEdt").style.visibility = "Visible";
            }
            else {
                document.getElementById("ChequeEdt").style.visibility = "visible ";
                document.getElementById("ChequeEdt2").style.visibility = "visible ";
                document.getElementById("cashEdt").style.visibility = "collapse";
            }
        }


        function SearchCrit(dropdown) {

            if (dropdown.selectedIndex == 0) {
                document.getElementById("tdSrcTop").style.display = "none";
                document.getElementById("tdname").style.display = "none";
                document.getElementById("tdlocation").style.display = "none";
            }
            else if (dropdown.selectedIndex == 1) {

                document.getElementById("tdSrcTop").style.display = "none";
                document.getElementById("tdlocation").style.display = "none";
                document.getElementById("tdname").style.display = "table-cell";

            }
            else if (dropdown.selectedIndex == 2) {
                document.getElementById("tdSrcTop").style.display = "table-cell";

                document.getElementById("tdlocation").style.display = "none";
                document.getElementById("tdname").style.display = "none";

            }
            else {
                document.getElementById("tdSrcTop").style.display = "none";
                document.getElementById("tdlocation").style.display = "table-cell";
                //   document.getElementById("TdSrchLoc").style.margin = "0px 0px 0px -180px";

                document.getElementById("tdname").style.display = "none";
            }
            //            if (dropdown.selectedIndex == 0) {

            //                document.getElementById("TdSrchTOP").style.visibility = "collapse";
            //                document.getElementById("TdSrchLoc").style.visibility = "collapse";
            //                document.getElementById("TdSrchName").style.visibility = "collapse";
            //            }
            //            else if (dropdown.selectedIndex == 1) {
            //                document.getElementById("TdSrchTOP").style.visibility = "collapse";
            //                document.getElementById("TdSrchLoc").style.visibility = "collapse";
            //                document.getElementById("TdSrchName").style.visibility = "Visible";
            //                //   document.getElementById("TdSrchName").style.margin = "-30px 0px 0px 240px";

            //            }
            //            else if (dropdown.selectedIndex == 2) {
            //                document.getElementById("TdSrchTOP").style.visibility = "Visible";
            //                //    document.getElementById("TdSrchTOP").style.margin = "0px 0px 0px 0px";

            //                document.getElementById("TdSrchLoc").style.visibility = "collapse";
            //                document.getElementById("TdSrchName").style.visibility = "collapse";

            //            }
            //            else {
            //                document.getElementById("TdSrchTOP").style.visibility = "collapse";
            //                document.getElementById("TdSrchLoc").style.visibility = "Visible";
            //                //   document.getElementById("TdSrchLoc").style.margin = "0px 0px 0px -180px";

            //                document.getElementById("TdSrchName").style.visibility = "collapse";
            //            }

        }



        function showForm() {

            document.getElementById("Form").style.visibility = "Visible";
            document.getElementById("allEquip").style.visibility = "collapse";

            document.getElementById("FormLink").className = "tabAddSel";
            document.getElementById("AllHELink").className = "tabAdd";
        }

        function showAllEqui() {
            document.getElementById("Form").style.visibility = "collapse";
            document.getElementById("allEquip").style.visibility = "Visible";

            document.getElementById("FormLink").className = "tabAdd";
            document.getElementById("AllHELink").className = "tabAddSel";


        }

        function dateCheck(textbox) {

            var d2 = new Date(document.getElementById("txtEndDate").value);
            var d1 = new Date(document.getElementById("txtStartDate").value);

            var t2 = d2.getTime();
            var t1 = d1.getTime();

            var days = parseInt((t2 - t1) / (24 * 3600 * 1000));
            if (parseInt((t2 - t1) / (24 * 3600 * 1000)) >= 0) {
                document.getElementById("txtTotalNoDays").value = days;
            }
            else {
                document.getElementById("txtTotalNoDays").value = "0";
            }
        }



        function dateCheckEdt(textbox) {

            var d2 = new Date(document.getElementById("txtEdtEndDate").value);
            var d1 = new Date(document.getElementById("txtEdtStartDate").value);

            var t2 = d2.getTime();
            var t1 = d1.getTime();

            var days = parseInt((t2 - t1) / (24 * 3600 * 1000));
            if (parseInt((t2 - t1) / (24 * 3600 * 1000)) >= 0) {
                document.getElementById("txtEdtTotalDays").value = days;
            }
            else {
                document.getElementById("txtEdtTotalDays").value = "0";
            }
        }
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
        <uc:header runat="server" ID="aa" />
    </div>
    <div>
        <center>
            <table width="1000px" border="0">
                <tr>
                    <td valign="top" align="center">
                        <table class="MainDiv" width="900px">
                            <tr>
                                <td valign="top">
                                    <m1:Menu runat="server" ID="menu" />
                                </td>
                                <td valign="top" align="left">
                                    <table width="650px" style="overflow: hidden;">
                                        <tr>
                                            <td colspan="3">
                                                <asp:Label ID="Label1" runat="server" Text=" Equipments" CssClass="headingpage"></asp:Label>
                                                <div class="imgstrip">
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <div id="tabs" style="overflow: auto;">
                                                    <ul>
                                                        <li><a href="#tabs-0">Hired Equipments</a></li>
                                                        <li><a href="#tabs-1">All Hired Equipments</a></li>
                                                    </ul>
                                                    <div id="tabs-0">
                                                        <input type="hidden" id="tab0Selected" />
                                                        <div id="Div2" style="float: left; width: 100%;">
                                                            <table>
                                                                <tr>
                                                                    <td id="spnMsg" runat="server" visible="false" style="border: 1px solid green; background: #BFFFDF;
                                                                        width: 600px;" align="center">
                                                                        <span style="border: none;" runat="server" id="spnText" visible="true" class="spanMsgs">
                                                                        </span>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <fieldset>
                                                                            <legend class="headingfieldset">Customer Details</legend>
                                                                            <table style="text-align: left; padding-left: 20px; padding-right: 20px;" cellpadding="5px"
                                                                                cellspacing="3px" border="0">
                                                                                <tr>
                                                                                    <td align="left" style="width: 240px;">
                                                                                        <asp:Label ID="Label2" runat="server" Text="Name of the comapny/Individual" class="Formlbl"></asp:Label><sup
                                                                                            style="color: Red;"> *</sup>
                                                                                    </td>
                                                                                    <td align="left" class="style1">
                                                                                        <asp:TextBox MaxLength="100" ID="txtCompanyName" runat="server"></asp:TextBox>
                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="None"
                                                                                            ControlToValidate="txtCompanyName" ErrorMessage="Please, Enter Company Name"
                                                                                            CssClass="validators"></asp:RequiredFieldValidator>
                                                                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="RequiredFieldValidator1">
                                                                                        </asp:ValidatorCalloutExtender>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label3" runat="server" Text="Authority Name" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox MaxLength="100" ID="txtAuthorityName" runat="server"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left" valign="top">
                                                                                        <asp:Label ID="Label4" runat="server" Text="Address" class="Formlbl"></asp:Label><sup
                                                                                            style="color: Red;"> *</sup>
                                                                                    </td>
                                                                                    <td align="left" class="style1">
                                                                                        <asp:TextBox Rows="2" MaxLength="100" ID="txtAddress" TextMode="MultiLine" runat="server"></asp:TextBox>
                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="None"
                                                                                            ControlToValidate="txtAddress" ErrorMessage="Please, Enter Address" CssClass="validators"></asp:RequiredFieldValidator>
                                                                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="RequiredFieldValidator2">
                                                                                        </asp:ValidatorCalloutExtender>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label5" runat="server" Text="Title of Production" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:DropDownList ID="cmbTitleOfProduction" runat="server">
                                                                                            <asp:ListItem>Feature Film</asp:ListItem>
                                                                                            <asp:ListItem>Serial</asp:ListItem>
                                                                                            <asp:ListItem>Pilot</asp:ListItem>
                                                                                            <asp:ListItem>Commercial Add</asp:ListItem>
                                                                                            <asp:ListItem>Commercial Documentary</asp:ListItem>
                                                                                            <asp:ListItem>Short film</asp:ListItem>
                                                                                            <asp:ListItem>Print Swt</asp:ListItem>
                                                                                            <asp:ListItem>Online Film</asp:ListItem>
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label6" runat="server" Text="Language of Production" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:DropDownList ID="cmbLanguageOfProduction" runat="server">
                                                                                            <asp:ListItem>Hindi</asp:ListItem>
                                                                                            <asp:ListItem>Marathi</asp:ListItem>
                                                                                            <asp:ListItem>Gujrati</asp:ListItem>
                                                                                            <asp:ListItem>South</asp:ListItem>
                                                                                            <asp:ListItem>Bhojpuri</asp:ListItem>
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label13" runat="server" Text="Hire of equipment" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:DropDownList ID="cmbHireEquipment" runat="server">
                                                                                            <asp:ListItem>ABC</asp:ListItem>
                                                                                            <asp:ListItem>XYZ</asp:ListItem>
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label7" runat="server" Text="Location to which the" class="Formlbl"></asp:Label>
                                                                                        <asp:Label ID="Label72" runat="server" Text="equipment will be delivered" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:DropDownList ID="cmbLocation" runat="server">
                                                                                        </asp:DropDownList>
                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please,Enter Location"
                                                                                            InitialValue="-1" ControlToValidate="cmbLocation" Display="None" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="RequiredFieldValidator5">
                                                                                        </asp:ValidatorCalloutExtender>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label457" runat="server" Text="Method of Transformation" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:RadioButton ID="rdReceivedFromShop" Text="Received from shop" runat="server"
                                                                                            GroupName="mot" />
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:RadioButton ID="rdDeliveredToCustomer" Text="Delivered to customer" runat="server"
                                                                                            GroupName="mot" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </fieldset>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <fieldset>
                                                                            <legend class="headingfieldset">Period of Production</legend>
                                                                            <table style="text-align: left; padding-left: 20px; padding-right: 20px;" cellpadding="5px"
                                                                                cellspacing="3px" border="0" width="100%">
                                                                                <tr>
                                                                                    <td align="left" class="style1" style="width: 140px">
                                                                                        <asp:Label ID="Label8" runat="server" Text="Period of Production" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:DropDownList ID="cmbPeriodOfProduction" runat="server">
                                                                                            <asp:ListItem>Indoor</asp:ListItem>
                                                                                            <asp:ListItem>Outdoor</asp:ListItem>
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label9" runat="server" Text="Start Date (mm/dd/yyyy)" class="Formlbl"></asp:Label><sup
                                                                                            style="color: Red;"> *</sup>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox ID="txtStartDate" runat="server" onchange="dateCheck(this.form.txtStartDate)"></asp:TextBox>
                                                                                        <asp:CalendarExtender ID="txtStrtCal" runat="server" Enabled="True" TargetControlID="txtStartDate">
                                                                                        </asp:CalendarExtender>
                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Display="None"
                                                                                            ControlToValidate="txtStartDate" ErrorMessage="Please, Enter Start Date" CssClass="validators"></asp:RequiredFieldValidator>
                                                                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" TargetControlID="RequiredFieldValidator6">
                                                                                        </asp:ValidatorCalloutExtender>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label10" runat="server" Text="End Date (mm/dd/yyyy)" class="Formlbl"></asp:Label><sup
                                                                                            style="color: Red;"> *</sup>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox ID="txtEndDate" runat="server" onchange="dateCheck(this.form.txtEndDate)"></asp:TextBox>
                                                                                        <asp:CompareValidator ID="cmpDate" runat="server" ControlToCompare="txtStartDate"
                                                                                            ControlToValidate="txtEndDate" Operator="GreaterThanEqual" Type="Date" Display="none"
                                                                                            ErrorMessage="End date should be greater than Start date"></asp:CompareValidator>
                                                                                        <asp:CalendarExtender ID="txtEndDate_CalendarExtender" runat="server" Enabled="True"
                                                                                            TargetControlID="txtEndDate">
                                                                                        </asp:CalendarExtender>
                                                                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="cmpDate">
                                                                                        </asp:ValidatorCalloutExtender>
                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" Display="None"
                                                                                            ControlToValidate="txtEndDate" ErrorMessage="Please, Enter End Date" CssClass="validators"></asp:RequiredFieldValidator>
                                                                                        <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" TargetControlID="RequiredFieldValidator7">
                                                                                        </asp:ValidatorCalloutExtender>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label11" runat="server" Text="Total No. of days" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox ID="txtTotalNoDays" runat="server" Text="" Enabled="false"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label12" runat="server" Text="Deliver Time (HH:MM:AM/PM)" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:DropDownList SkinID="ddlVerySmall" ID="cmbDelHr" runat="server">
                                                                                        </asp:DropDownList>
                                                                                        <asp:DropDownList SkinID="ddlVerySmall" ID="cmbDelMin" runat="server">
                                                                                        </asp:DropDownList>
                                                                                        <asp:DropDownList SkinID="ddlVerySmall" ID="cmbDelAmPm" runat="server">
                                                                                            <asp:ListItem>Am</asp:ListItem>
                                                                                            <asp:ListItem>Pm</asp:ListItem>
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label14" runat="server" Text="Receive Time (HH:MM:AM/PM)" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:DropDownList SkinID="ddlVerySmall" ID="cmbRecHr" runat="server">
                                                                                        </asp:DropDownList>
                                                                                        <asp:DropDownList SkinID="ddlVerySmall" ID="cmbRecMin" runat="server">
                                                                                        </asp:DropDownList>
                                                                                        <asp:DropDownList SkinID="ddlVerySmall" ID="cmbRecAmPm" runat="server">
                                                                                            <asp:ListItem>Am</asp:ListItem>
                                                                                            <asp:ListItem>Pm</asp:ListItem>
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </fieldset>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <fieldset>
                                                                            <legend class="headingfieldset">Payment Details</legend>
                                                                            <table style="text-align: left; padding-left: 20px; padding-right: 20px;" cellpadding="5px"
                                                                                cellspacing="3px" border="0">
                                                                                <tr>
                                                                                    <td align="left" class="style1" style="width: 240px">
                                                                                        <asp:Label ID="Label15" runat="server" Text="Payment Mode" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:DropDownList ID="cmbPaymentMode" runat="server" onchange="isCash(this.form.cmbPaymentMode)">
                                                                                            <asp:ListItem>Cash</asp:ListItem>
                                                                                            <asp:ListItem>Cheque</asp:ListItem>
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label19" runat="server" Text="Balance" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox ID="txtBalance" runat="server" onkeypress="return isNumberKey(event)"
                                                                                            MaxLength="7"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr id="Cash">
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label16" runat="server" Text="Cash" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox ID="txtCash" runat="server" onkeypress="return isNumberKey(event)" MaxLength="7"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr id="Cheque" style="visibility: collapse;">
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label17" runat="server" Text="Cheque No." class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox ID="txtChequeNo" runat="server" MaxLength="6" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr id="Cheque2" style="visibility: collapse;">
                                                                                    <td align="left">
                                                                                        <asp:Label ID="Label18" runat="server" Text="Amount of Cheque" class="Formlbl"></asp:Label>
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox ID="txtAmount" runat="server" onkeypress="return isNumberKey(event)"
                                                                                            MaxLength="7"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </fieldset>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2" align="center">
                                                                        <asp:Button ID="Button1" CssClass="btnsubmit" runat="server" Text="Submit" OnClick="Button1_Click" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                    </div>
                                                    <div id="tabs-1" style="text-align: left;">
                                                        <input type="hidden" id="tab1Selected" />
                                                        <div>
                                                            <table width="100%" border="0">
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upPnlCandidate">
                                                                            <ProgressTemplate>
                                                                                <center>
                                                                                    <div id="pageLoading">
                                                                                        <center>
                                                                                            <img src="Images/loading123.gif" style="z-index: 5000; top: 50%; left: 50%; position: absolute;"
                                                                                                alt="loading" />
                                                                                            <div style="color: White; font-size: 18px; top: 50%; left: 50%;">
                                                                                                Loading...
                                                                                            </div>
                                                                                        </center>
                                                                                        <div id="transparentBg" class="transparentBg">
                                                                                        </div>
                                                                                    </div>
                                                                                </center>
                                                                            </ProgressTemplate>
                                                                        </asp:UpdateProgress>
                                                                        <asp:UpdatePanel ID="upPnlCandidate" runat="server">
                                                                            <ContentTemplate>
                                                                                <table border="0" width="100%">
                                                                                    <tr id="search">
                                                                                        <td height="50px">
                                                                                            <div style="float: left;">
                                                                                                <table>
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <asp:Label ID="Label22" runat="server" Text="Search:" CssClass="Label"></asp:Label>
                                                                                                        </td>
                                                                                                        <td>
                                                                                                            <asp:DropDownList ID="cmbSearchHireEquip" runat="server" SkinID="ddlLargeNew" onchange="SearchCrit(this.form.cmbSearchHireEquip)">
                                                                                                                <asp:ListItem Text="View all" Value="0" Selected="True"></asp:ListItem>
                                                                                                                <asp:ListItem Text="Name" Value="1">
                                                                                                                </asp:ListItem>
                                                                                                                <asp:ListItem Text="Title of Production" Value="2"></asp:ListItem>
                                                                                                                <asp:ListItem Text="Location" Value="3"></asp:ListItem>
                                                                                                            </asp:DropDownList>
                                                                                                        </td>
                                                                                                        <td id="tdSrcTop" style="display:none">
                                                                                                            <asp:DropDownList ID="cmbSrchTOP" SkinID="ddlLargeNew" runat="server">
                                                                                                                <asp:ListItem>Feature Film</asp:ListItem>
                                                                                                                <asp:ListItem>Serial</asp:ListItem>
                                                                                                                <asp:ListItem>Pilot</asp:ListItem>
                                                                                                                <asp:ListItem>Commercial Add</asp:ListItem>
                                                                                                                <asp:ListItem>Commercial Documentary</asp:ListItem>
                                                                                                                <asp:ListItem>Short film</asp:ListItem>
                                                                                                                <asp:ListItem>Print Swt</asp:ListItem>
                                                                                                                <asp:ListItem>Online Film</asp:ListItem>
                                                                                                            </asp:DropDownList>
                                                                                                        </td>
                                                                                                        <td id="tdname" style="display:none">
                                                                                                            <asp:TextBox ID="txtSrchName" SkinID="x-bigboxNew" Style="display: none" runat="server"></asp:TextBox>
                                                                                                            <asp:TextBoxWatermarkExtender ID="txtName_TextBoxWatermarkExtender" WatermarkText="Enter Name to Search"
                                                                                                                WatermarkCssClass="Watermarktxt" runat="server" TargetControlID="txtSrchName">
                                                                                                            </asp:TextBoxWatermarkExtender>
                                                                                                        </td>
                                                                                                        <td id="tdlocation" style="display:none">
                                                                                                           
                                                                                                             <asp:DropDownList ID="cmbSrchLoc" runat="server" SkinID="ddlSmallNew" Style="display: none">
                                                                                            </asp:DropDownList>
                                                                                                        </td>
                                                                                                        <td>
                                                                                                            <asp:Button ID="btnSearch" CausesValidation="false" runat="server" Text="Search"
                                                                                                                CssClass="btnsubmit" OnClick="btnSearch_Click" />
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                                <%--<div style="float: left; visibility: hidden" id="TdSrchLoc">
                                                                                                    
                                                                                                </div>
                                                                                                <div id="TdSrchName" style="float: left; visibility: hidden">
                                                                                                    
                                                                                                </div>--%>
                                                                                                <div style="float: left; margin: 0px 0px 0px 10px">
                                                                                                </div>
                                                                                            </div>
                                                                                            <%--      <div style="float: left;">
                                                                                                <div style="float: left;">
                                                                                                    <asp:Label ID="Label22" runat="server" Text="Search:" CssClass="Label"></asp:Label>
                                                                                                    <asp:DropDownList ID="cmbSearchHireEquip" runat="server" SkinID="ddlLargeNew" onchange="SearchCrit(this.form.cmbSearchHireEquip)">
                                                                                                        <asp:ListItem Text="View all" Value="0" Selected="True"></asp:ListItem>
                                                                                                        <asp:ListItem Text="Name" Value="1">
                                                                                                        </asp:ListItem>
                                                                                                        <asp:ListItem Text="Title of Production" Value="2"></asp:ListItem>
                                                                                                        <asp:ListItem Text="Location" Value="3"></asp:ListItem>
                                                                                                    </asp:DropDownList>
                                                                                                </div>
                                                                                                <div id="TdSrchTOP" style="float: left; margin: 0px 0px 0px 5px; visibility: hidden">
                                                                                                    <asp:DropDownList ID="cmbSrchTOP" SkinID="ddlLargeNew" runat="server">
                                                                                                        <asp:ListItem>Feature Film</asp:ListItem>
                                                                                                        <asp:ListItem>Serial</asp:ListItem>
                                                                                                        <asp:ListItem>Pilot</asp:ListItem>
                                                                                                        <asp:ListItem>Commercial Add</asp:ListItem>
                                                                                                        <asp:ListItem>Commercial Documentary</asp:ListItem>
                                                                                                        <asp:ListItem>Short film</asp:ListItem>
                                                                                                        <asp:ListItem>Print Swt</asp:ListItem>
                                                                                                        <asp:ListItem>Online Film</asp:ListItem>
                                                                                                    </asp:DropDownList>
                                                                                                </div>
                                                                                                <div style="float: left; visibility: hidden" id="TdSrchLoc">
                                                                                                    <asp:DropDownList ID="cmbSrchLoc" SkinID="ddlSmallNew" runat="server">
                                                                                                        <asp:ListItem Value="0">Pune</asp:ListItem>
                                                                                                        <asp:ListItem Value="1">Mumbai</asp:ListItem>
                                                                                                    </asp:DropDownList>
                                                                                                </div>
                                                                                                <div id="TdSrchName" style="float: left; visibility: hidden">
                                                                                                    <asp:TextBox ID="txtSrchName" SkinID="x-bigboxNew" runat="server"></asp:TextBox>
                                                                                                    <asp:TextBoxWatermarkExtender ID="txtName_TextBoxWatermarkExtender" WatermarkText="Enter Name to Search"
                                                                                                        WatermarkCssClass="Watermarktxt" runat="server" TargetControlID="txtSrchName">
                                                                                                    </asp:TextBoxWatermarkExtender>
                                                                                                </div>
                                                                                                <div style="float: left; margin: 0px 0px 0px 0px">
                                                                                                    <asp:Button ID="btnSearch" CausesValidation="false" runat="server" Text="Search"
                                                                                                        CssClass="btnsubmit" OnClick="btnSearch_Click" />
                                                                                                </div>
                                                                                            </div>--%>
                                                                                            <br />
                                                                                        </td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td valign="top" width="480px" align="center">
                                                                                            <asp:GridView ID="gdHireEquipment" runat="server" BackColor="White" Width="100%"
                                                                                                BorderColor="#DEDFDE" DataKeyNames="HireId" BorderStyle="None" BorderWidth="1px"
                                                                                                CellPadding="4" ForeColor="Black" GridLines="Vertical" AllowPaging="True" AutoGenerateColumns="False"
                                                                                                OnRowDataBound="gdHireEquipment_RowDataBound" EmptyDataText="No data found."
                                                                                                OnPageIndexChanging="gdHireEquipment_PageIndexChanging">
                                                                                                <AlternatingRowStyle BackColor="White" />
                                                                                                <Columns>
                                                                                                    <asp:BoundField HeaderText="Company Name" DataField="Company_Name" ItemStyle-Width="120px">
                                                                                                        <ItemStyle Width="200px" />
                                                                                                    </asp:BoundField>
                                                                                                    <asp:BoundField HeaderText="Authority Name" DataField="Authority_Name" ItemStyle-Width="180">
                                                                                                        <ItemStyle Width="200px" />
                                                                                                    </asp:BoundField>
                                                                                                    <asp:BoundField HeaderText="Location" DataField="Equipment_Location" ItemStyle-Width="80">
                                                                                                        <ItemStyle Width="80px" />
                                                                                                    </asp:BoundField>
                                                                                                    <asp:TemplateField>
                                                                                                        <ItemTemplate>
                                                                                                            <asp:LinkButton ID="lnkView" runat="server" Text="View" ForeColor="#0066FF" ItemStyle-Width="10"
                                                                                                                OnClick="lnkView_Click" CausesValidation="false"></asp:LinkButton>
                                                                                                        </ItemTemplate>
                                                                                                    </asp:TemplateField>
                                                                                                    <asp:TemplateField>
                                                                                                        <ItemTemplate>
                                                                                                            <asp:LinkButton ID="lnkEdit" runat="server" Text="Edit" ForeColor="#0066FF" ItemStyle-Width="10"
                                                                                                                OnClick="lnkEdit_Click" CausesValidation="false"></asp:LinkButton>
                                                                                                            <asp:LinkButton ID="lnkHidden" runat="server" ForeColor="#0066FF"></asp:LinkButton>
                                                                                                        </ItemTemplate>
                                                                                                    </asp:TemplateField>
                                                                                                    <asp:TemplateField>
                                                                                                        <ItemTemplate>
                                                                                                            <asp:LinkButton CausesValidation="false" OnClick="lnkDelete_Click" ID="lnkDelete"
                                                                                                                runat="server" Text="Delete" ForeColor="#0066FF" ItemStyle-Width="10"></asp:LinkButton>
                                                                                                            <asp:LinkButton ID="lnkApHidden" runat="server" ForeColor="#0066FF"></asp:LinkButton>
                                                                                                        </ItemTemplate>
                                                                                                    </asp:TemplateField>
                                                                                                    <asp:TemplateField>
                                                                                                        <ItemTemplate>
                                                                                                            <asp:LinkButton CausesValidation="false" OnClick="lnkAppr_Click" ID="lnkApprove"
                                                                                                                runat="server" Text="" ToolTip='<% Bind("IsApprove") %>' ForeColor="#0066FF"
                                                                                                                ItemStyle-Width="10"></asp:LinkButton>
                                                                                                        </ItemTemplate>
                                                                                                    </asp:TemplateField>
                                                                                                </Columns>
                                                                                                <EmptyDataRowStyle CssClass="errorSpan" Font-Bold="True" Font-Size="15pt" ForeColor="Red" />
                                                                                                <FooterStyle BackColor="#CCCC99" />
                                                                                                <HeaderStyle BackColor="#021D48" Font-Bold="True" ForeColor="white" />
                                                                                                <PagerStyle ForeColor="#CCCCCC" HorizontalAlign="right" BackColor="#843808" />
                                                                                                <SelectedRowStyle BackColor="#000099" ForeColor="White" Font-Bold="True" />
                                                                                                <AlternatingRowStyle BackColor="#edf7fa" />
                                                                                            </asp:GridView>
                                                                                            <!--modal view !-->
                                                                                            <asp:Button ID="btnHiddenPerson" runat="Server" Style="display: none" />
                                                                                            <asp:ModalPopupExtender ID="lnkView_ModalPopupExtender" runat="server" TargetControlID="btnHiddenPerson"
                                                                                                CancelControlID="cancelBtnView" PopupControlID="pnlLnkView" BackgroundCssClass="modalBackground">
                                                                                            </asp:ModalPopupExtender>
                                                                                            <asp:Panel ID="pnlLnkView" runat="server">
                                                                                                <table width="600px" class="ModalPopup" border="0" cellpadding="3" cellspacing="2"
                                                                                                    style="margin-left: 50px">
                                                                                                    <tr>
                                                                                                        <td colspan="4">
                                                                                                            <div style="float: right">
                                                                                                                <img src="Images/newsletter_close.PNG" alt="close" runat="server" id="cancelBtnView" /></div>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="4" class="gdheadingNew">
                                                                                                            Hire Equipment Detail
                                                                                                            <hr />
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <fieldset width="550px">
                                                                                                                <legend>Customer Deatails</legend>
                                                                                                                <table width="550px">
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate" style="width: 160px;">
                                                                                                                            Company Name:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate " width="150px">
                                                                                                                            <asp:Label ID="lblCompanyName" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr id="trAdd" runat="server">
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Authority Name:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate">
                                                                                                                            <asp:Label ID="lblAuthorityName" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Address:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate " width="150px">
                                                                                                                            <asp:Label ID="lblAddress" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Titel of Production:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate " width="180px">
                                                                                                                            <asp:Label ID="lblTitleOfProduction" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Language Of Production:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate " width="200px">
                                                                                                                            <asp:Label ID="lblLanguageOfProduction" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Mode of Transportation:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate " width="150px">
                                                                                                                            <asp:Label ID="lblmot" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </table>
                                                                                                            </fieldset>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <fieldset>
                                                                                                                <legend>Period of Production</legend>
                                                                                                                <table width="550px" cellpadding="3" cellspacing="3">
                                                                                                                    <tr id="trMobEmail" runat="server">
                                                                                                                        <td class="tdheader modalCandidate" width="50px">
                                                                                                                            Location:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate">
                                                                                                                            <asp:Label ID="lblLocation" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Period of Production:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate ">
                                                                                                                            <asp:Label ID="lblPop" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Start Date:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate ">
                                                                                                                            <asp:Label ID="lblStrDate" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            End Date:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate">
                                                                                                                            <asp:Label ID="lblEndDate" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Total Days:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate">
                                                                                                                            <asp:Label ID="lblTotalDays" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Delivery Time:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate">
                                                                                                                            <asp:Label ID="lblDelTime" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Receive Time:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate " width="50px">
                                                                                                                            <asp:Label ID="lblRecTime" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </table>
                                                                                                            </fieldset>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <fieldset>
                                                                                                                <legend>Payments </legend>
                                                                                                                <table width="550px">
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Hire of Equipment:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate " width="150px">
                                                                                                                            <asp:Label ID="lblHoe" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Payment Mode:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate " width="150px">
                                                                                                                            <asp:Label ID="lblPayMode" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Balance:
                                                                                                                        </td>
                                                                                                                        <td class="modalCandidate " width="150px">
                                                                                                                            <asp:Label ID="lblBalance" runat="server"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </table>
                                                                                                            </fieldset>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </asp:Panel>
                                                                                        </td>
                                                                                    </tr>
                                                                                </table>
                                                                                <asp:Button ID="btnHiddenPerson1" runat="Server" Style="display: none" />
                                                                                <asp:ModalPopupExtender ID="LnkEditPopUp" runat="server" TargetControlID="btnHiddenPerson1"
                                                                                    CancelControlID="cancelBtnEdit2" PopupControlID="pnlLnkEdit" BackgroundCssClass="modalBackground">
                                                                                </asp:ModalPopupExtender>
                                                                                <asp:Panel ID="pnlLnkEdit" runat="server" Style="overflow: auto; height: 400px; width: 650px"
                                                                                    class="ModalPopup">
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td colspan="4">
                                                                                                <div style="float: right">
                                                                                                    <img src="Images/newsletter_close.PNG" alt="close" runat="server" id="cancelBtnEdit2" /></div>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="4">
                                                                                                <table width="550px">
                                                                                                    <tr>
                                                                                                        <td colspan="4">
                                                                                                            <fieldset>
                                                                                                                <legend>Customer Details</legend>
                                                                                                                <table width="550px" border="0" cellpadding="3" cellspacing="0" style="margin-left: 20px">
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Name of the comapny/Individual:<sup style="color: Red;"> *</sup>
                                                                                                                        </td>
                                                                                                                        <td align="left" class="style1">
                                                                                                                            <asp:TextBox MaxLength="100" ID="txtEdtComName" runat="server"></asp:TextBox>
                                                                                                                            <asp:RequiredFieldValidator ValidationGroup="edit" ID="RequiredFieldValidator3nc"
                                                                                                                                runat="server" Display="None" ControlToValidate="txtEdtComName" ErrorMessage="Please, Enter Company Name"
                                                                                                                                CssClass="validators"></asp:RequiredFieldValidator>
                                                                                                                            <asp:ValidatorCalloutExtender ID="RequiredFieldValidator3ee" runat="server" TargetControlID="RequiredFieldValidator3nc">
                                                                                                                            </asp:ValidatorCalloutExtender>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Authority Name:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:TextBox MaxLength="100" ID="txtEdtAuthorityName" runat="server"></asp:TextBox>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Address:<sup style="color: Red;"> *</sup>
                                                                                                                        </td>
                                                                                                                        <td align="left" class="style1">
                                                                                                                            <asp:TextBox Rows="2" MaxLength="100" ID="txtEdtAddr" TextMode="MultiLine" runat="server"></asp:TextBox>
                                                                                                                            <asp:RequiredFieldValidator ValidationGroup="edit" ID="RequiredFieldValidator4ee"
                                                                                                                                runat="server" Display="None" ControlToValidate="txtEdtAddr" ErrorMessage="Please, Enter Address"
                                                                                                                                CssClass="validators"></asp:RequiredFieldValidator>
                                                                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4s" runat="server" TargetControlID="RequiredFieldValidator4ee">
                                                                                                                            </asp:ValidatorCalloutExtender>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Title of Production:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:DropDownList ID="cmbEdtTOP" runat="server">
                                                                                                                                <asp:ListItem>Feature Film</asp:ListItem>
                                                                                                                                <asp:ListItem>Serial</asp:ListItem>
                                                                                                                                <asp:ListItem>Pilot</asp:ListItem>
                                                                                                                                <asp:ListItem>Commercial Add</asp:ListItem>
                                                                                                                                <asp:ListItem>Commercial Documentary</asp:ListItem>
                                                                                                                                <asp:ListItem>Short film</asp:ListItem>
                                                                                                                                <asp:ListItem>Print Swt</asp:ListItem>
                                                                                                                                <asp:ListItem>Online Film</asp:ListItem>
                                                                                                                            </asp:DropDownList>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Language of Production:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:DropDownList ID="cmbEdtLOP" runat="server">
                                                                                                                                <asp:ListItem>Hindi</asp:ListItem>
                                                                                                                                <asp:ListItem>Marathi</asp:ListItem>
                                                                                                                                <asp:ListItem>Gujrati</asp:ListItem>
                                                                                                                                <asp:ListItem>South</asp:ListItem>
                                                                                                                                <asp:ListItem>Bhojpuri</asp:ListItem>
                                                                                                                            </asp:DropDownList>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Hire of equipment:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:DropDownList ID="cmbEdtHOE" runat="server">
                                                                                                                                <asp:ListItem>ABC</asp:ListItem>
                                                                                                                                <asp:ListItem>XYZ</asp:ListItem>
                                                                                                                            </asp:DropDownList>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Location to which the equipment will be delivered :
                                                                                                                        </td>
                                                                                                                        <td>
                                                                                                                            <asp:DropDownList ID="cmbEdtLocation" runat="server">
                                                                                                                                <asp:ListItem> Mumbai </asp:ListItem>
                                                                                                                                <asp:ListItem> Delhi </asp:ListItem>
                                                                                                                                <asp:ListItem> Bangalore </asp:ListItem>
                                                                                                                                <asp:ListItem> Hyderabad </asp:ListItem>
                                                                                                                                <asp:ListItem> Ahmedabad </asp:ListItem>
                                                                                                                                <asp:ListItem> Chennai </asp:ListItem>
                                                                                                                            </asp:DropDownList>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Method of Transformation:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:RadioButton ID="rdEdtRFS" Text="Received from shop" runat="server" GroupName="mot" />
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td align="left">
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:RadioButton ID="rdEdtDTC" Text="Delivered to customer" runat="server" GroupName="mot" />
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </table>
                                                                                                            </fieldset>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="4">
                                                                                                            <fieldset>
                                                                                                                <legend>Period of Production</legend>
                                                                                                                <table width="550px" border="0" cellpadding="3" cellspacing="0" style="margin-left: 20px">
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Period of Production:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:DropDownList ID="cmbEdtPOP" runat="server">
                                                                                                                                <asp:ListItem Selected="True" Text="--Select Location--" Value="-1"> </asp:ListItem>
                                                                                                                                <asp:ListItem>Indoor</asp:ListItem>
                                                                                                                                <asp:ListItem>Outdoor</asp:ListItem>
                                                                                                                            </asp:DropDownList>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Start Date (mm/dd/yyyy):<sup style="color: Red;"> *</sup>
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:TextBox ID="txtEdtStartDate" runat="server" onchange="dateCheckEdt(this.form.txtEdtStartDate)"></asp:TextBox>
                                                                                                                            <asp:CalendarExtender ID="CalendarExtender1edtsd" runat="server" Enabled="True" TargetControlID="txtEdtStartDate">
                                                                                                                            </asp:CalendarExtender>
                                                                                                                            <asp:RequiredFieldValidator ValidationGroup="edit" ID="RequiredFieldValidator8er"
                                                                                                                                runat="server" Display="None" ControlToValidate="txtEdtStartDate" ErrorMessage="Please, Enter Start Date"
                                                                                                                                CssClass="validators"></asp:RequiredFieldValidator>
                                                                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7er" runat="server" TargetControlID="RequiredFieldValidator8er">
                                                                                                                            </asp:ValidatorCalloutExtender>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            End Date (mm/dd/yyyy):<sup style="color: Red;"> *</sup>
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:TextBox ID="txtEdtEndDate" runat="server" onchange="dateCheckEdt(this.form.txtEdtEndDate)"></asp:TextBox>
                                                                                                                            <asp:CompareValidator ValidationGroup="edit" ID="CompareValidator1date" runat="server"
                                                                                                                                ControlToCompare="txtEdtStartDate" ControlToValidate="txtEdtEndDate" Operator="GreaterThanEqual"
                                                                                                                                Type="Date" Display="none" ErrorMessage="End date should be greater than Start date"></asp:CompareValidator>
                                                                                                                            <asp:CalendarExtender ID="CalendarExtendere2" runat="server" Enabled="True" TargetControlID="txtEdtEndDate">
                                                                                                                            </asp:CalendarExtender>
                                                                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6s" runat="server" TargetControlID="CompareValidator1date">
                                                                                                                            </asp:ValidatorCalloutExtender>
                                                                                                                            <asp:RequiredFieldValidator ValidationGroup="edit" ID="RequiredFieldValidator9" runat="server"
                                                                                                                                Display="None" ControlToValidate="txtEdtEndDate" ErrorMessage="Please, Enter End Date"
                                                                                                                                CssClass="validators"></asp:RequiredFieldValidator>
                                                                                                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" TargetControlID="RequiredFieldValidator9">
                                                                                                                            </asp:ValidatorCalloutExtender>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Total No. of days:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:TextBox ID="txtEdtTotalDays" runat="server" Text="" Enabled="false"></asp:TextBox>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Deliver Time (HH:MM:AM/PM):
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:DropDownList SkinID="ddlVerySmall" ID="cmbEdtDelHr" runat="server">
                                                                                                                            </asp:DropDownList>
                                                                                                                            <asp:DropDownList SkinID="ddlVerySmall" ID="cmbEdtDelMin" runat="server">
                                                                                                                            </asp:DropDownList>
                                                                                                                            <asp:DropDownList SkinID="ddlVerySmall" ID="cmbEdtDelAmPm" runat="server">
                                                                                                                                <asp:ListItem>Am</asp:ListItem>
                                                                                                                                <asp:ListItem>Pm</asp:ListItem>
                                                                                                                            </asp:DropDownList>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Receive Time (HH:MM:AM/PM):
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:DropDownList SkinID="ddlVerySmall" ID="cmbEdtRecHr" runat="server">
                                                                                                                            </asp:DropDownList>
                                                                                                                            <asp:DropDownList SkinID="ddlVerySmall" ID="cmbEdtRecMin" runat="server">
                                                                                                                            </asp:DropDownList>
                                                                                                                            <asp:DropDownList SkinID="ddlVerySmall" ID="cmbEdtRecAmPm" runat="server">
                                                                                                                                <asp:ListItem>Am</asp:ListItem>
                                                                                                                                <asp:ListItem>Pm</asp:ListItem>
                                                                                                                            </asp:DropDownList>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </table>
                                                                                                            </fieldset>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="4">
                                                                                                            <fieldset>
                                                                                                                <legend>Payment Details</legend>
                                                                                                                <table width="550px" border="0" cellpadding="3" cellspacing="0" style="margin-left: 20px">
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Payment Mode:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:DropDownList ID="cmbEdtPaymentMode" runat="server" onchange="isCashEdt(this.form.cmbEdtPaymentMode)">
                                                                                                                                <asp:ListItem>Cash</asp:ListItem>
                                                                                                                                <asp:ListItem>Cheque</asp:ListItem>
                                                                                                                            </asp:DropDownList>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Balance:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:TextBox ID="txtEdtBal" runat="server" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr id="cashEdt" runat="server">
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Cash:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:TextBox ID="txtEdtCash" runat="server" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr id="ChequeEdt" runat="server">
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Cheque No.:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:TextBox ID="txtEdtChequeNo" runat="server" MaxLength="6" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr id="ChequeEdt2" runat="server">
                                                                                                                        <td class="tdheader modalCandidate">
                                                                                                                            Amount of Cheque:
                                                                                                                        </td>
                                                                                                                        <td align="left">
                                                                                                                            <asp:TextBox ID="txtEdtAmount" runat="server" onkeypress="return isNumberKey(event)"></asp:TextBox>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </table>
                                                                                                            </fieldset>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td colspan="2" align="center">
                                                                                                            <asp:Button ID="ButtonUpdate" CausesValidation="true" ValidationGroup="edit" CssClass="btnsubmit"
                                                                                                                runat="server" Text="Update" OnClick="update" />
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </asp:Panel>
                                                                            </ContentTemplate>
                                                                        </asp:UpdatePanel>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </center>
    </div>
    </form>
</body>
</html>
